package com.insigma.business.qrcode.notice.controller;

import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.notice.dto.NoticeAnnouncementDTO;
import com.insigma.business.qrcode.notice.service.NoticeAnnouncementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("/app/notice")
public class NoticeAnnouncementController {

    @Resource
    private NoticeAnnouncementService naService;


    /**
     * 小程序端-通知公告、政策信息列表查询
     */
    @PostMapping("/queryAllNotice")
    public BaseResponse<List<NoticeAnnouncementDTO>> queryAllNotice(@RequestBody NoticeAnnouncementDTO requestDTO) throws Exception {
        return naService.queryAll(requestDTO);
    }


}
